package com.example.bili.base;

import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by Administrator on 2017/3/8.
 */

public abstract class BaseFragment extends Fragment {
    public View onCreateView(LayoutInflater inflater,  ViewGroup container, Bundle savedInstanceState) {
        View view = getLayoutview();
        initview(view);
        m_onCreateView();
        return view;
    }

    protected abstract void initview(View view);
    protected abstract void m_onCreateView();
    public abstract View getLayoutview();
}
